package com.wanxi.auth.controller;

import com.wanxi.auth.entity.LoginParam;
import com.wanxi.common.entity.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "权限管理")
public class LoginController {

    @PostMapping("/auth/login")
    @ApiOperation(value = "用户登录")
    public CommonResult<Object> login(LoginParam loginParam) {
        return null;
    }

    @PostMapping("/auth/check")
    @ApiOperation(value = "远程鉴权")
    public CommonResult<Object> check(@ApiParam(value = "账户名") String account, @ApiParam(value = "访问路径") String uri) {
        return null;
    }
}
